import request from '@/utils/request'

export const listBodyType = (search) =>
  request({
    url: '/tBodyType',
    method: 'get',
    params: {
      offset: search.offset,
      limit: search.limit,
      name: search.name
    }
  })

export const saveTBodyType = (idCard,tbody) =>
  request({
    url: '/tBodyType/addTBodyType/'+idCard,
    method: 'post',
    data: tbody
  })

export const getTBodyTypeById = (id) =>
  request({
    url: '/tBodyType/' + id,
    method: 'get'
  })



export const updateTBodyType = (id, tbody) =>
  request({
    url: '/tBodyType/updateTBodyType/'+id,
    method: 'put',
    data: tbody
  })

export const listAllTBodyType = () =>
  request({
    url: '/tBodyType/all',
    method: 'get'
  })

export const removeTBodyType = (id) =>
  request({
    url: '/tBodyType/' + id,
    method: 'delete'
  })
export const querySunQuestion = (id) =>
  request({
    url: '/tAssessQuestion/querySunQuestion/'+id,
    method: 'get'
  })

export const queryRainQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryRainQuestion/'+id,
    method: 'get'
  })

export const queryQiQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryQiQuestion/'+id,
    method: 'get'
  })


export const queryPingQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryPingQuestion/'+id,
    method: 'get'
  })


export const queryTanQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryTanQuestion/'+id,
    method: 'get'
  })

export const queryShiQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryShiQuestion/'+id,
    method: 'get'
  })


export const queryXueQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryXueQuestion/'+id,
    method: 'get'
  })


export const queryYuQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryYuQuestion/'+id,
    method: 'get'
  })
export const queryTeQuestion = (id) =>
  request({
    url: '/tAssessQuestion/queryTeQuestion/'+id,
    method: 'get'
  })

  export const getMemberById = (memberId) =>
  request({
    url:'/tBodyType/getMemberById/'+memberId,
    method:'get',
  })

  export const getMemberByCardId = (idCard) =>
  request({
    url:'/tBodyType/getMemberByCardId',
    method:'get',
    params:{
      idCard:idCard},
  })



  //=============

export const querySunQuestions = () =>
request({
  url: '/tAssessQuestion/querySunQuestion',
  method: 'get'
})

export const queryRainQuestions = () =>
request({
  url: '/tAssessQuestion/queryRainQuestion',
  method: 'get'
})

export const queryQiQuestions = () =>
request({
  url: '/tAssessQuestion/queryQiQuestion',
  method: 'get'
})


export const queryPingQuestions = () =>
request({
  url: '/tAssessQuestion/queryPingQuestion',
  method: 'get'
})


export const queryTanQuestions = () =>
request({
  url: '/tAssessQuestion/queryTanQuestion',
  method: 'get'
})

export const queryShiQuestions = () =>
request({
  url: '/tAssessQuestion/queryShiQuestion',
  method: 'get'
})


export const queryXueQuestions = () =>
request({
  url: '/tAssessQuestion/queryXueQuestion',
  method: 'get'
})


export const queryYuQuestions = () =>
request({
  url: '/tAssessQuestion/queryYuQuestion',
  method: 'get'
})
export const queryTeQuestions = () =>
request({
  url: '/tAssessQuestion/queryTeQuestion',
  method: 'get'
})



